How to add multiple users to "accept messages from, only senders in the following list" using powershell in exchange 2007
hi, I have used the following command on my EMS 2007 Get-DistributionGroupMember "MYGROUP" | Set-Mailbox -AcceptMessagesOnlyFrom EMAIL@DOMAIN.COM Now thise successfully works. But I want to add multiple email addresses, however each time I run the command with a different email alias it just overwrites the last one So how can I adjust my command above to add aditional aliasesCeltic
January 28th, 2011 10:06am

You have to list them all in the command. Or better still, create group, add the users to the group and use the group as the restriction. Simon.Simon Butler, Exchange MVP Blog | Exchange Resources
Free Windows Admin Tool Kit Click here and download it now
January 28th, 2011 12:01pm

You can use the below cmdlet to append the list Get-DistributionGroupMember "MYGROUP" | Get-Mailbox | foreach {$_.AcceptMessagesOnlyFrom+="EMAIL@DOMAIN.COM_} | Set-Mailbox";$
January 31st, 2011 1:35am

You can try the below set of cmdlets Get-DistributionGroupMember "MYGROUP" | Get-Mailbox | foreach {$_.acceptmessagesonlyfrom+="email@domain.com";Set-Mailbox $_ -acceptmessagesonlyfrom $_.acceptmessagesonlyfrom}
Free Windows Admin Tool Kit Click here and download it now
January 31st, 2011 2:08am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics